Repository navigation
Rank-up share card and Elo tiers - #351
Merged
Merged
Conversation
- **New: rank-up share card** after rated online matches (all 14 games that use `elo.js`). When a match takes you to a new Elo tier, or into a game's top 100 / top 10 / top 3 / #1, a panel pops up with **Share achievement**, **Save image** and **Copy link**. - **Elo tiers added:** Bronze, Silver 1100, Gold 1250, Platinum 1400, Diamond 1600, Champion 1800. - The shared picture (1080 × 1350) shows the game, the tier or place, the rating and change, the player's name and "Play at ascoding11.com/<game>". - Files: new `e63334287a3deaa3/flex.js` (loaded by `elo.js` only after a rated match); `elo.js` (one hook); `index.html` and `e63334287a3deaa3/m/index.html` (game frames now allow `web-share` so the share sheet works inside them); README; What's new entry. - Risk: low. Reads `rooms/elo-<game>/players` once after a match (no new writes, no rules change). Every call swallows its own errors, so it can't break a game. Shell Crackers keeps its own rating and doesn't get the card yet. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016ZY4GY6KEVGmw5xYZiPbvp
✅ Deploy Preview for ascoding11 ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for cosmic-dasik-e73c56 ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
elo.js). When a match takes you to a new Elo tier, or into a game's top 100 / top 10 / top 3 / Back Room: parties (group up, then join a game room together) #1, a panel pops up with Share achievement, Save image and Copy link.e63334287a3deaa3/flex.js(loaded byelo.jsonly after a rated match);elo.js(one hook);index.htmlande63334287a3deaa3/m/index.html(game frames now allowweb-shareso the share sheet works inside them); README; What's new entry.rooms/elo-<game>/playersonce after a match (no new writes, no rules change). Every call swallows its own errors, so it can't break a game. Shell Crackers keeps its own rating and doesn't get the card yet.Generated by Claude Code